package com.farm.area.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 农场片区实体
 * @author azhe
 * @create 2020/10/10
 */
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@Table(name = "t_cust_farm")
public class FarmArea implements Serializable {
    /**
     * 主键id
     */
    @Id
    private Integer id;

    /**
     * 农场所属组织id
     */
    private Integer customerId;

    /**
     * 农场编号
     */
    private String code;

    /**
     * 农场名称
     */
    private String name;

    /**
     * 农场状态
     */
    private String status;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 地址
     */
    private String address;

    /**
     * 对应的农田集合
     */
    private List<FarmLand> farmLands = new ArrayList<>();

    public List<FarmLand> getFarmLands() {
        return farmLands;
    }

    public void setFarmLands(List<FarmLand> farmLands) {
        this.farmLands = farmLands;
    }

    public Integer getId() {
        return id;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
